<template>
  <div>
    <table>
      <tr>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr v-for="i in finan" :key="i.id">
        <td>{{ i.name }}</td>
        <td>{{ i.tmoney }}</td>
        <td>{{ i.jigou }}</td>
        <td>{{ i.uname }}</td>
        <td>{{ i.rname }}</td>
      </tr>
    </table>

  </div>

</template>

<script>
import axios from "axios";

export default {
  name: "shenhe",
  data() {
    return {
      finan: []
    }
  },
  methods: {
    getfinan() {
      axios.get('http://127.0.0.1:8000/finan/').then(res => {
        if (res.data.code == 200) {
          this.finan = res.data.list
        }
      })
    }


  },
  mounted() {
    this.getfinan()
  }
}
</script>

<style scoped>

</style>